package demo3;

public class Test {
    public static void func1(Animal animal){
        animal.eat();
    }
    public static void testFly(Ifiy ifiy){
        ifiy.fly();
    }

    public static void main(String[] args) {
        testFly(new Bird("布谷"));
    }

    public static void main1(String[] args) {
        func1(new Dog("旺财"));
        func1(new Bird("百灵"));
    }
}
